package org.example.im.service;

import org.example.im.dto.UserDTO;
import org.example.im.entity.User;

import java.util.List;

public interface UserService {
    
    User register(String username, String password);
    
    User login(String username, String password);
    
    List<UserDTO> getAllUsers();
    
    User getUserById(Long id);
    
    User getUserByUsername(String username);
} 